package com.zxm.musicList;

import com.zxm.play.Animation;
import com.zxm.play.AudioPlay;

/**
 * @author :silencezheng
 *
 */
public class Canon {
    public static void main(String[] args) {
        String sub =" 3+ 0 0 0 0  0  0  0  2+ 0 0  0  0  0 0  0 1+ 0 0  0 0  0 0  0 7  0 0  0 0  0 0  0 6  0 0  0 0  0 0  0 \n" +
                " 5  0 0 0 0  0  0  0  6  0 0  0  0  0 0  0 7  0 0  0 0  0 0  0 3+ 0 0  0 3+ 0 1+ 0 2+ 0 0  0 0  0 7  0 \n" +
                " 1+ 0 0 0 1+ 0  6  0  7  0 0  0  0  0 5  0 6  0 0  0 6  0 4  0 5  0 0  0 0  0 3  0 6  0 0  0 6  0 1+ 0 \n" +
                " 7  0 0 0 1+ 0  2+ 0  3+ 0 2+ 0  3+ 0 4+ 0 5+ 0 2+ 0 5+ 0 4+ 0 3+ 0 6+ 0 5+ 0 4+ 0 5+ 0 4+ 0 3+ 0 2+ 0 \n" +
                " 1+ 0 6 0 6+ 0 7+ 0 1++ 0 7+ 0 6+ 0 5+ 0 4+ 0 3+ 0 2+ 0 6+ 0 5+ 0 6+ 0 5+ 0 4+ 0 5+ 0 3+ 4+ 5+ 0 3+ 4+ \n" +
                " 5+ 5 6 7 1+ 2+ 3+ 4+ 3+ 0 1+ 2+ 3+ 0 3  4 5  6 5  4 5  3 4  5 4  0 6  5 4  0 3  2 3  2 1  2 3  4 5  6 \n" +
                " 4  0 6 5 6  0  7  1+ 5  6 7  1+ 2+ 3+ 4+ 5+ 5+ 0  0 0  0 0  5+ 5+ 0 6+ 0 5+ 0 4+ 0 3+ 0 0 0 0 0  3+ 0 \n" +
                " 3+ 0 4+ 0 3+ 0 2+ 0  1+ 0 0  0  0  0 1+ 0 1+ 0 2+ 0 1+ 0 7  0 6 0 0  0 0  0 1+ 0 7  0 0  0 1+ 0 2+ 0 \n" +
                " 3+ 0 0 0 0 0 0 0 2+ 0 0 0 0 0 0 0 1+ 0 0 0 0 0 0 0 7 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 \n" +
                " 5 0 0 0 0 0 0 0 6 0 0 0 0 0 1+ 0 7 1+ 7 1+ 7 1+ 6 7 1+ 0 0 0 0 0 0 0";

        String main = " 1  0  3  0 5  0 0 0 5- 0  7- 0 2  0 0 0 6-  0 1   0 3  0 0 0 3-  0 5- 0 7- 0 0 0 4-  0 6-  0 1  0 0 0 \n" +
                " 1- 0  3- 0 5- 0 0 0 4- 0  6- 0 1  0 0 0 5-  0 7-  0 2  0 0 0 1   0 3  0 5  0 0 0 5-  0 7-  0 2  0 0 0 \n" +
                " 6- 0  1  0 3  0 0 0 3- 0  5- 0 7- 0 0 0 4-  0 6-  0 1  0 0 0 1-  0 3- 0 5- 0 0 0 4-  0 6-  0 1  0 0 0 \n" +
                " 5- 0  7- 0 2  0 0 0 1- 0  5- 0 3  0 0 0 5-- 0 2-  0 7- 0 0 0 6-- 0 3- 0 1  0 0 0 3-- 0 7-- 0 5- 0 0 0 \n" +
                " 4-- 0 1- 0 6- 0 0 0 1-- 0 5-- 0 3- 0 0 0 4-- 0 1- 0 6- 0 0 0 5-- 0 2- 0 7- 0 0 0 1-  0 5-  0 3  0 0 0 \n" +
                " 5-- 0 2- 0 7- 0 0 0 6-- 0 3- 0 1  0 0 0 3-- 0 7-- 0 5- 0 0 0 4-- 0 1- 0 6- 0 0 0 1-- 0 5-- 0 3- 0 0 0 \n" +
                " 4-- 0 1- 0 6- 0 0 0 5-- 0 2- 0 7- 0 0 0 1-  0 5-  0 3  0 0 0 5-- 0 2- 0 7- 0 0 0 6-- 0 3-  0 1  0 0 0 \n" +
                " 3-- 0 7-- 0 5- 0 0 0 4-- 0 1- 0 6- 0 0 0 1-- 0 5-- 0 3- 0 0 0 4-- 0 1- 0 6- 0 0 0 5-- 0 2- 0 7- 0 0 0 \n" +
                " 1   0 3  0 5  0 0 0 5- 0  7- 0 2  0 0 0 6- 0 1 0  3 0  0 0 3- 0 5- 0 7- 0 0 0 4- 0 6- 0 1 0 0 0 \n" +
                " 1-  0 3- 0 5- 0 0 0 4- 0  6- 0 1 0 0 0 5- 0 7- 0 2 0 0 0 1 0 0 0 0 0";

        // 播放
        new AudioPlay(200).loadNotes(main).start();
        new AudioPlay(200).loadNotes(sub).start();

        //控制台打印
        new Animation(200).loadNotes(main).start();

    }
}
